<script type="text/javascript">
$(document).ready(function(){
	
			// Validate form
			$("#lichday").validate({
				errorElement: "span", // Định dạng cho thẻ HTML hiện thông báo lỗi
				
					 
				 
			});
	
});
</script>
<?php
$title = 'Thêm lịch dạy';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>

<?php


$form = $this->form;
$form->setAttribute('action', $this->url('lichday', array('action' => 'add')));
$form->prepare();

echo $this->form()->openTag($form) . PHP_EOL;
echo $this->formHidden($form->get('id')) . PHP_EOL;
echo $this->formRow($form->get('lop')) . PHP_EOL;
echo $this->formRow($form->get('giaovien')) . PHP_EOL;
echo $this->formRow($form->get('tiet')) . PHP_EOL;
echo $this->formRow($form->get('thu')) . PHP_EOL;
echo $this->formRow($form->get('buoi')) . PHP_EOL;


echo "<br>".$this->formInput($form->get('submit')) . PHP_EOL;
echo $this->form()->closeTag($form) . PHP_EOL;


?>
<div id="error" class="error"><?php echo $this->error; ?></div>